import Mock from "mockjs";
const Random = Mock.Random;
export const mockrechargerecords = function () {
  let list = [];
  for (let i = 0; i < Random.integer(4, 6); i++) {
    var record = Mock.mock({
      model: "UserSubSystem.asset",
      "pk": i+1,
    //   "pk|+1": 1,
      fields: {
        //生成随机的充值金额
        "record_amount|100-10000.1-2": 100,
        //生成随机的充值操作时间
        operate_time: "@datetime('yyyy-MM-dd hh:mm:ss')",
      },
    });
    list.push(record);
  }
  return {
    data: JSON.stringify(list),
    flag: true,
  };
};
